import Vue from 'vue';
import Vuex from 'vuex';
import user from './modules/user';
import order from './modules/order';
import delivery from './modules/delivery';
import wxpay from './modules/wxpay';
import share from './modules/share';
import channel from './modules/channel';



import getters from './getters';

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    user,
    order,
    delivery,
    wxpay,
    channel,
    share
  },
  getters
});

export default store
